package yf.mall.service;


import org.apache.ibatis.annotations.Param;
import yf.mall.entity.AccountRecordEntity;
import com.yf.service.BaseService;
import yf.mall.vo.AccountRecordVo;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 账户记录Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Mon Aug 26 16:58:11 CST 2019
 */
public interface AccountRecordService extends BaseService<AccountRecordEntity> {

    List<AccountRecordVo> queryListVo(AccountRecordVo params);

    AccountRecordVo getVo(Long id);


    /**api**/
    List<AccountRecordVo> findByUserId(Long userId,Integer type,Integer status,Integer bus);

    Map<String,BigDecimal> findByToUserId(Long userId, Integer type, Integer bus, Integer status);
    //待收款
    BigDecimal waitIncome(Long userId);


}
